<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    
  <title>SHRIMP</title>
  <link rel="shortcut icon" href="/images/favicon.ico"/>

  <link rel="stylesheet" href="http://yui.yahooapis.com/2.7.0/build/reset-fonts-grids/reset-fonts-grids.css" type="text/css"/>
  <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.7.0/build/base/base-min.css"/>

  <%= stylesheet_link_tag "shrimp", "#{controller.controller_name}" %>

  <%= javascript_include_tag :defaults %>

</head>
<body>
<div id="doc3">

  <div id="hd">

    <% unless session[:user].nil? %>
      <div id="user_controls">
        <%= link_to "My Account", user_path(session[:user]) %> |
        <%= link_to "Logout", :controller => "login", :action => "logout" %>
      </div>
    <% end %>

    <div>
      <h1><a href="/"><span class="acronym">SHRIMP</span> <span style="font-weight: normal; color: #a2795a;">|</span> <span class="acronym">SHRI</span>NE Ontology <span class="acronym">M</span>a<span class="acronym">P</span>ping Tool</a></h1>
    </div>
    <div id="nav_menu">
      <ul>        
        <li>
          <%= link_to "Mapper", "/mapper" %>
        </li>
        <li>
          <%= link_to "Manage Institutions", institutions_path %>
        </li>
        <li>
          <%= link_to "Manage Fragment Types", fragment_types_path %>
        </li>
        <li>
          <%= link_to "Manage Fragments", fragments_path %>
        </li>
        <li>
          <%= link_to "Manage Mapping Types", mapping_types_path %>
        </li>
        <% if !@user.nil? && @user.admin? %>
          <li>
            <%= link_to "Users", users_path %>
          </li>
        <% end %>
        <li>
          <%= link_to "About", about_path %>
        </li>        
      </ul>
    </div>
  </div>

  <div id="bd">    
    <% if flash[:notice] %>
      <div>
        <p style="color: green"><%= flash[:notice] %></p>
      </div>
    <% end %>

    <% if flash[:error] %>
      <div style="background-color: #ccc; padding: 8px; border: 1px solid #f00;">
        <div style="color: #f00; font-weight: bold;"><%= flash[:error] %></div>
      </div>
    <% end %>

    <div id="shrimp_content">

      <%= yield -%>

    </div>
  </div>

  <div id="ft">
    <div id="shrimp_footer">
      Copyright &copy;2009 by the President and Fellows of Harvard College
    </div>
  </div>

</div>
</body>
</html>